import request from '@/utils/request';

const prefix = '/apworkshop';

export async function getModelInfo(modelId) {
    return request(`${prefix}/api/v1/studioModel/${modelId}`, {
      method: 'GET',
    })
  }

  export async function getVersions(modelId,data) {
    return request(`${prefix}/api/v1/studioModelVersionsByModel/${modelId}`, {
      method: 'GET',
      params:data
    })
  }

  export async function deleteVersions(modelId) {
    return request(`${prefix}/api/v1/studioModelVersion/${modelId}`, {
      method: 'DELETE',
    })
  }

export const versionList = '/studioModelVersionsByModel';
